import request from '@/utils/request'

// 获取流程定义 XML
export function getDefinitionXML(processDefinitionId) {
  return request({
    url: `/fmea/workflow/modelerEditor/definition/getDefinitionXML/${processDefinitionId}`,
    method: 'get'
  })
}

// 部署流程定义
export function deployDefinition(data) {
  return request({
    url: `/fmea/workflow/modelerEditor/definition/deployDefinition`,
    method: 'post',
    data: data
  })
}

